package Entity;

public class LoginStateMedel {

    int state;
    String msg;

    public LoginStateMedel setLoginStart(){
        state=1;
        msg="登录中...";
        return this;
    }

    public LoginStateMedel setLoginEnd(String error){
        state=2;
        msg=error;
        return this;
    }

    public int getState() {
        return state;
    }

    public String getMsg() {
        return msg;
    }

    public LoginStateMedel setLoginSuccess(){
        state=3;
        msg="登录成功";
        return this;
    }

}
